﻿using System;
using System.Collections.Generic;
using System.Linq;
using DevExpress.Xpf.Grid;
using DevExpress.Xpf.NavBar;
using WpfClient.Properties;

namespace WpfClient.Classes
{
    public class RussianDXGridLocalizer : GridControlLocalizer
    {
        protected override void PopulateStringTable()
        {
            base.PopulateStringTable();

            AddString(GridControlStringId.GridNewRowText, Resources.GridNewRowText);

            // AddString(GridControlStringId.DefaultTotalSummaryFormatStringInSameColumn_Avg, Resources.DefaultTotalSummaryFormatStringInSameColumn_Avg);

            // AddString(GridControlStringId.DefaultTotalSummaryFormatStringInSameColumn_Count, Resources.DefaultTotalSummaryFormatStringInSameColumn_Count);

            // AddString(GridControlStringId.DefaultTotalSummaryFormatStringInSameColumn_Max, Resources.DefaultTotalSummaryFormatStringInSameColumn_Max);

            // AddString(GridControlStringId.DefaultTotalSummaryFormatStringInSameColumn_Min, Resources.DefaultTotalSummaryFormatStringInSameColumn_Min);

            // AddString(GridControlStringId.DefaultTotalSummaryFormatStringInSameColumn_Sum, Resources.DefaultTotalSummaryFormatStringInSameColumn_Sum);

            AddString(GridControlStringId.GridGroupPanelText, Resources.GridGroupPanelText);

            AddString(GridControlStringId.MenuColumnBestFit, Resources.MenuColumnBestFit);

            AddString(GridControlStringId.MenuColumnBestFitColumns, Resources.MenuColumnBestFitColumns);

            AddString(GridControlStringId.MenuColumnClearFilter, Resources.MenuColumnClearFilter);

            AddString(GridControlStringId.MenuColumnClearSorting, Resources.MenuColumnClearSorting);

            AddString(GridControlStringId.MenuColumnFilterEditor, Resources.MenuColumnFilterEditor);

            AddString(GridControlStringId.MenuColumnFixedLeft, Resources.MenuColumnFixedLeft);

            AddString(GridControlStringId.MenuColumnFixedNone, Resources.MenuColumnFixedNone);

            AddString(GridControlStringId.MenuColumnFixedRight, Resources.MenuColumnFixedRight);

            AddString(GridControlStringId.MenuColumnFixedStyle, Resources.MenuColumnFixedStyle);

            AddString(GridControlStringId.MenuColumnGroup, Resources.MenuColumnGroup);

            AddString(GridControlStringId.MenuColumnGroupSummaryEditor, Resources.MenuColumnGroupSummaryEditor);

            AddString(GridControlStringId.MenuColumnHideColumnChooser, Resources.MenuColumnHideColumnChooser);

            AddString(GridControlStringId.MenuColumnHideGroupPanel, Resources.MenuColumnHideGroupPanel);

            AddString(GridControlStringId.MenuColumnShowColumnChooser, Resources.MenuColumnShowColumnChooser);

            AddString(GridControlStringId.MenuColumnShowGroupPanel, Resources.MenuColumnShowGroupPanel);

            AddString(GridControlStringId.MenuColumnSortAscending, Resources.MenuColumnSortAscending);

            AddString(GridControlStringId.MenuColumnSortDescending, Resources.MenuColumnSortDescending);

            AddString(GridControlStringId.MenuColumnUnGroup, Resources.MenuColumnUnGroup);

            AddString(GridControlStringId.MenuFooterCount, Resources.DefaultTotalSummaryFormatStringInSameColumn_Count);

            AddString(GridControlStringId.MenuFooterAverage, Resources.DefaultTotalSummaryFormatStringInSameColumn_Avg);

            AddString(GridControlStringId.MenuFooterMax, Resources.DefaultTotalSummaryFormatStringInSameColumn_Max);

            AddString(GridControlStringId.MenuFooterMin, Resources.DefaultTotalSummaryFormatStringInSameColumn_Min);

            AddString(GridControlStringId.MenuFooterSum, Resources.DefaultTotalSummaryFormatStringInSameColumn_Sum);

            AddString(GridControlStringId.MenuFooterCustomize, Resources.MenuFooterCustomize);

            AddString(GridControlStringId.PopupFilterAll, Resources.PopupFilterAll);

            AddString(GridControlStringId.PopupFilterBlanks,Resources.PopupFilterBlanks);

            AddString(GridControlStringId.PopupFilterNonBlanks, Resources.PopupFilterNonBlanks);

            AddString(GridControlStringId.SummaryEditorFormItemsTabCaption, Resources.SummaryEditorFormItemsTabCaption);

            AddString(GridControlStringId.SummaryEditorFormOrderTabCaption,Resources.SummaryEditorFormOrderTabCaption);

            AddString(GridControlStringId.TotalSummaryEditorFormCaption, Resources.TotalSummaryEditorFormCaption);
                        
        }
        
    }

    public class RussianNavBarLocalizer : NavBarLocalizer
    {
        protected override void PopulateStringTable()
        {
            base.PopulateStringTable();

            AddString(NavBarStringId.NavPaneMenuAddRemoveButtons, Resources.NavPaneMenuAddRemoveButtons);

            AddString(NavBarStringId.NavPaneMenuShowFewerButtons, Resources.NavPaneMenuShowFewerButtons);

            AddString(NavBarStringId.NavPaneMenuShowMoreButtons, Resources.NavPaneMenuShowMoreButtons);
        }
    }
}
